package com.gimi.cloud.bbp.commonService.sms;

import java.util.Map;

import com.gimi.cloud.bbp.dto.sys.AlidayuDTO;

/**
 * 短信通道
 * 
 * @author xx
 * @version 2.0
 * @since 2014年3月19日
 */
public interface SmsPortal {

	/** 注册验证码 **/
	public static final String LOGIN_BY_PWDCODE = "loginByPwdcode";

	/** 修改密码时验证码 **/
	public static final String MODIFYPASSWORD_CODE = "modifypasswordCode";

	public static final byte MESSAGE_SMS = 1;
	public static final byte MESSAGE_EMAIL = 2;
	public static final byte MESSAGE_MESSAGE = 3;

	public String getSPName();

	/**
	 * 发送消息
	 * 
	 * @param phone
	 * @param content
	 * @return
	 */
	public String send(String phone, String content);

	public Map<String, Integer> getUseInfo();

	public String sendNew(String phone,String noticeTypeNid);

	public String sendMessage(AlidayuDTO alidayuDTO,String code,String noticeTypeNid) ;
}
